<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateCmcPromotionPintuanGoodsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('cmc_promotion_pintuan_goods', function (Blueprint $table) {
            $table->increments('id');
            $table->string('pintuan_id')->default('')->comment('拼团ID');
            $table->string('goods_id')->default('')->comment('商品ID');
            $table->string('sku_id')->default('')->comment('skuid');
            $table->string('pintuan_price')->default('')->comment('拼团价格');
            $table->string('promotion_price')->default('')->comment('团长优惠价');
            $table->string('site_id')->default('')->comment('站点id');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('cmc_promotion_pintuan_goods');
    }
}
